package com.hspedu.homework.homework04;

/**
 * @Author Stringzhua
 * @Date 2024/3/3 17:11
 * description:普通员工类
 */
public class Worker extends Employee{
    //普通员工没有特有的属性

    @Override
    public void printSal() {//因为普通员工类和Employee输出工资情况一样,所以直接调用printSal
        System.out.print("普通员工 ");
        super.printSal();
    }

    //构造器
    public Worker(String name, double daysal, int workdays, double grade) {
        super(name, daysal, workdays, grade);
    }
}
